#!/usr/bin/env python

import sys
from media_manager_class import MediaManager

def get_items ( liwe, module, id_obj, order_mode = '' ):
	"""
	:INPUT:
		- module:		SAFE_DB_STRING
		- id_obj:		SAFE_DB_STRING
		- order_mode:		SAFE_STRING
	"""
	
	mm = MediaManager ( liwe )
	return mm.get_items ( module, id_obj, order_mode )

def serve_file ( liwe, kind = '', mode = '', id_media = 0, ext = '' ):
        """        
        :INPUT:
                - kind:		SAFE_DB_STRING
                - mode:		SAFE_DB_STRING
                - id_mode:	SAFE_NUMBER
                - ext:		SAFE_DB_STRING
        """     
	mm = MediaManager ( liwe )
        mm.serve_file ( kind = kind, mode = mode, id_media = id_media, ext = ext ) 
